Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run sync server in a fiber #8

Open
wants to merge 1 commit into
base: 1.x.x
Choose a base branch
from
Open

Run sync server in a fiber #8

wants to merge 1 commit into from

Conversation

kpicaza
Copy link
Member

@kpicaza kpicaza commented Dec 16, 2021

Description

Running await makes the current sync server fail with a segmentation fault because the fiber isn't already started.

Motivation and context

It fixes the described situation and adds real support to use async APIs inside the sync server.

How has this been tested?

Covered by unit tests and tested manually

Screenshots (if appropriate)

image

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the CONTRIBUTING document.
  • My pull request addresses exactly one patch/feature.
  • I have created a branch for this patch/feature.
  • Each individual commit in the pull request is meaningful.
  • I have added tests to cover my changes.
  • If my change requires a change to the documentation, I have updated it accordingly.

@kpicaza kpicaza added the bug Something isn't working label Dec 16, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #8 (52db516) into 1.x.x (a14d115) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              1.x.x       #8   +/-   ##
=========================================
  Coverage     80.00%   80.00%           
  Complexity       12       12           
=========================================
  Files             5        5           
  Lines            40       40           
=========================================
  Hits             32       32           
  Misses            8        8           
Impacted Files Coverage Δ
src/SyncRunner.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a14d115...52db516. Read the comment docs.

Copy link
Member

@xserrat xserrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀🚀

@@ -19,6 +19,7 @@
"nyholm/psr7": "^1.4",
"nyholm/psr7-server": "^1.0",
"psr/http-server-middleware": "^1.0",
"react/async": "@dev",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the dev version of this package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants